// RFID.h: interface for the CRFDI class.
//
//////////////////////////////////////////////////////////////////////
#ifndef CRFID_H
#define CRFID_H

#include "IRFID.h"
#include "..\Util\TimeCheck.h"

class IComThread;
class CTimeData;
// Common Layer
class CSystemData;

class CRFID  : public IRFID
{
private:
	CTimeData* m_lnkTimeData;
	CSystemData* m_lnkSystemData;

protected:
	IComThread* m_pCom2RFID;

public:
	CRFID(CSystemData* pDMCC);
	 ~CRFID();
	/**ComPort Open*/
	int ComPortOpen();
	/**ComPort CLose*/
	int ComPortClose();
	int RFIDReadLotID();
	int RFIDReadCarrierID();

	CString ConvertData(CString sH, CString sL);
	CString AnalysisLotID(CString strMessage);
	CString AnalysisCarrierID(CString strMessage);
};

#endif // CRFID_H
